 <?php
 	$action  		= $this->arrParam['action'];
	$linkAdd 		= $this->baseUrl ( $this->currentController . '/add' );
	$btnAdd 		= $this->cmsButton('Add new',$linkAdd, $this->imgUrl . '/toolbar/icon-32-new.png', 'link');
	
	$linkActive 	= $this->baseUrl ( $this->currentController . '/change-status/type/1' );
	$btnActive		= $this->cmsButton('Active Items',$linkActive, $this->imgUrl . '/toolbar/icon-32-active.png', 'submit');
	
	$linkInactive 	= $this->baseUrl ( $this->currentController . '/change-status/type/0' );
	$btnInactive	= $this->cmsButton('Inactive Items',$linkInactive, $this->imgUrl . '/toolbar/icon-32-inactive.png', 'submit');
	
	$linkSort 		= $this->baseUrl ( $this->currentController . '/sort' );
	$btnSort		= $this->cmsButton('Sort Items',$linkSort, $this->imgUrl . '/toolbar/icon-32-sort.png', 'submit');
	
	$linkDelete 	= $this->baseUrl ( $this->currentController . '/multi-delete' );
	$btnDelete		= $this->cmsButton('Delete Items',$linkDelete, $this->imgUrl . '/toolbar/icon-32-delete.png', 'submit');
	if($action == 'add'){
		$linkSave  		= $this->baseUrl ( $this->currentController . '/add' );
	}else{
		$linkSave  		= $this->baseUrl ( $this->currentController . '/edit/id/' . $this->arrParam['id'] );
	}
	$btnSave 		= $this->cmsButton('Save Item',$linkSave, $this->imgUrl . '/toolbar/icon-32-save.png', 'submit');
	
	$linkAccept 	= $this->baseUrl ( $this->currentController . '/delete/id/' . $this->arrParam['id']  );
	$btnAccept 		=  $this->cmsButton('Accept',$linkAccept, $this->imgUrl . '/toolbar/icon-32-accept.png', 'submit');
	$linkCancel 	= $this->baseUrl ( $this->currentController . '/index' );
	$btnCancel 		=  $this->cmsButton('Cancel',$linkCancel, $this->imgUrl . '/toolbar/icon-32-cancel.png', 'link');
	
	
	switch ($action){
		case 'add' : $strButton  =   $btnSave . ' ' . $btnCancel;
					 break;

		case 'edit' : $strButton  =   $btnSave . ' ' . $btnCancel;
					 break;

		case 'delete' : $strButton  =   $btnAccept . ' ' . $btnCancel;
					 break;						 
		default:	$strButton  =  $btnActive  . ' ' . $btnInactive  . ' ' .  
									$btnSort  .  ' '  . $btnAdd . ' ' . $btnDelete;
	}
	
	
	?>
<div id="toolbar-box">
	<div class="t">
		<div class="t">
			<div class="t"></div>
		</div>
	</div>
	<div class="m">
		<div id="toolbar" class="toolbar">
		
		<?php echo $strButton;?>
		
		<div class="clr"></div>
		</div>
		<div class="header icon-48-install"><?php echo $this->Title;?></div>
		
		<div class="clr"></div>
	</div>
	
	<div class="b">
		<div class="b">
			<div class="b"></div>
		</div>
	</div>
</div>
<div class="clr"></div>